package com.example.service;

import com.common.result.Result;
import com.github.pagehelper.Page;
import com.pojo.dto.EmployeeDTO;
import com.pojo.dto.EmployeeLoginDTO;
import com.pojo.dto.QueryPageDTO;
import com.pojo.entity.Employee;

import javax.security.auth.login.LoginException;
import java.util.List;
import java.util.Map;

public interface EmployeeService {
    void save(EmployeeDTO employeeDTO);

    Map<String,Object> login(EmployeeLoginDTO employeeLoginDTO) throws LoginException;

    List<Employee> allList();

    Page<Employee> queryPage(QueryPageDTO queryPageDTO);

    Employee getById(Long id);

    void update(EmployeeDTO employeeDTO);

    void deleteById(Long id);
}
